package hr.pzrinscak.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.activiti.engine.form.FormProperty;

public class UtilService {

    public Map<String,Object> getParametersMapFromTask(final List<FormProperty> formProperties) {

        Map<String, Object> propertyMap = new HashMap<String, Object>(formProperties.size());
        for (FormProperty property : formProperties) {
                propertyMap.put(property.getName(), property.getValue());
        }

        return propertyMap;
    }

}
